Skip to content

fork seams: announce the MCP profile hooks line of PR 528 (step 1) - #533

Merged
scuttletoby merged 1 commit into
mainfrom
fork/mcp-profile-hooks-seam-announce
Nov 19, 2026
Merged

scuttletoby merged 1 commit into
mainfrom
fork/mcp-profile-hooks-seam-announce

Conversation

@scuttletoby

Copy link
Copy Markdown
Owner

Step 1 (list only) for the fix round of #528, as docs/fork/updates.md "Adding a seam line" asks.

What: one more announced line in the apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts entry:

...input.mcpProfileOptions?.hooks,

It goes inside makeClaudeQueryOptions' hooks: { … } block. It merges the MCP profile's PreToolUse hook into the adapter's own hooks (SubagentStart, Stop). Without it, upstream's hooks object replaces the profile's hook, because the profile options are spread earlier in the same object. The hook is #528's call-time guard: it refuses a tool call to an MCP server outside the thread's profile (review finding B1).

After this merges, #528 (which adds the line and lists it under added) needs main merged in once more; the list conflict resolves to #528's side.

🤖 Generated with Claude Code

Announces one more ClaudeAdapterV2.ts line for MCP profiles part 2: the
adapter merges the profile's PreToolUse hook (the call-time guard that
refuses a tool call to a server outside the thread's profile) into its own
hooks. Joins the existing announcement of 2026-11-19 and updates the entry's
why. List only; #528 adds the line and moves it to "added".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant